package com.ruoyi.merchant.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商家管理对象 t_merchant
 * 
 * @author ruoyi
 * @date 2025-04-09
 */
public class Merchant extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商家ID */
    private Long id;

    /** 商家名称 */
    @Excel(name = "商家名称")
    private String merchantName;

    /** 商家营业执照 */
    @Excel(name = "商家营业执照")
    private String merchantLicense;

    /** 接单率（%） */
    @Excel(name = "接单率", readConverterExp = "%=")
    private BigDecimal merchantOrderRate;

    /** 好评率（%） */
    @Excel(name = "好评率", readConverterExp = "%=")
    private BigDecimal merchantFavorableRate;

    /** 逻辑删除（0=未删除，1=已删除） */
    private Integer isDelete;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMerchantName(String merchantName) 
    {
        this.merchantName = merchantName;
    }

    public String getMerchantName() 
    {
        return merchantName;
    }
    public void setMerchantLicense(String merchantLicense) 
    {
        this.merchantLicense = merchantLicense;
    }

    public String getMerchantLicense() 
    {
        return merchantLicense;
    }
    public void setMerchantOrderRate(BigDecimal merchantOrderRate) 
    {
        this.merchantOrderRate = merchantOrderRate;
    }

    public BigDecimal getMerchantOrderRate() 
    {
        return merchantOrderRate;
    }
    public void setMerchantFavorableRate(BigDecimal merchantFavorableRate) 
    {
        this.merchantFavorableRate = merchantFavorableRate;
    }

    public BigDecimal getMerchantFavorableRate() 
    {
        return merchantFavorableRate;
    }
    public void setIsDelete(Integer isDelete) 
    {
        this.isDelete = isDelete;
    }

    public Integer getIsDelete() 
    {
        return isDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("merchantName", getMerchantName())
            .append("merchantLicense", getMerchantLicense())
            .append("merchantOrderRate", getMerchantOrderRate())
            .append("merchantFavorableRate", getMerchantFavorableRate())
            .append("isDelete", getIsDelete())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
